package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",23,"北京","jsd2302","001");
        Teacher ls = new Teacher("李四",24,"上海",10000.0);
        Doctor ww  = new Doctor("王五",26,"广州","主治医生");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();
        ls.teach();
        ls.sayHi();
        ww.cut();
        ww.sayHi();
    }
}
